#include<graphics.h>
#include<conio.h>

IMAGEimg_bk, img_bdl, ing_bd2, img_bar_upl, img_bar_up2, img_bar_downl, img_bar_down2;
int bird_x;
int bird_y;

void startup()
{
	initgraph(350, 600);
	loadimage(&img_bk, "D:\\background.jpg);
		loadimage(&img_bdl, "D:\\birdl.jpg");
	loadimage(&img_bd2, "D:\\bird2.jpg");
	loadimage(&img_bar_upl, "D:\\bar_upl.gif");
	loadimage(&img_bar_up2, "D:\\bar_up2.gif");
	loadimage(&img_bar_down1, "D:\\bar_downl.gif");
	loadimage(&img.bar_down2, "D:\\bar_down2.gif");
	bird_x = 50;
	bird_y = 200;
	BeginBatchDraw();
}

void show()
putimage(0, 0, &img_bk);
putimage(150, -300, &img_bar_upl, NOTSRCERASE);
putimage(150, -300, &img_bar_up2, SRCINVERT);
putimage(150, 400, &img_bar_down1, NOTSRCERASE);
putimage(150, 400, &img_bar_down2, SRCINVERT);
putimage(bird_x, bird_y, &img_bd1, NOTSRCERASE);
putimage(bird_x, bird_y, &img_bd2, SRCINVERT);
FlushBatchDraw();
Sleep(50);
}